class CreateProducts < ActiveRecord::Migration
  def self.up
    create_table :products do |t|
      t.string :name, :null => false
      t.string :code, :null => false
      t.string :pkwiu
      t.string :unit, :null => false
      t.decimal :net_price, :null => false
      t.decimal :vat_rate, :null => false
      
      t.timestamps
    end
  end

  def self.down
    drop_table :products
  end
end
